<?php 

class Users extends Zend_Db_Table
{
	protected $_role = array('member', 'admin');
    protected $_name = 'users';
}

class Accounts extends Zend_Db_Table_Abstract
{
	protected $_name = 'accounts';
}

class People extends Zend_Db_Table_Abstract
{
	protected $_name = 'People';
	protected $_referenceMap = array(
	
	'Reporter' => array(
	'columns'        => array('user_id'),
	'refTableClass' => 'Accounts'
	));
	
	public function insert(array $data)
	{
		if(empty($data['created_on'])) {
			$data['created'] = time();
		}
		return parent::insert($data);
	}
	
}



?>
